<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>glutes: RGlutGC Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">glutes
   &#160;<span id="projectnumber">2</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_r_glut_g_c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">RGlutGC Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="RGlutGC" -->
<p>Basic drawing function implementation.  
 <a href="class_r_glut_g_c.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="rglutgc_8h_source.html">rglutgc.h</a>&gt;</code></p>

<p><a href="class_r_glut_g_c-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a015caed67b451c599ac5cdfdac084496"></a><!-- doxytag: member="RGlutGC::RGlutGC" ref="a015caed67b451c599ac5cdfdac084496" args="(RGlutWindow *window)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>RGlutGC</b> (<a class="el" href="class_r_glut_window.html">RGlutWindow</a> *window)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_glut_g_c.html#a55001c0a05f015a1b05df3defab07181">setForegroundColor</a> (<a class="el" href="class_r_glut_color.html">RGlutColor</a> const &amp;color)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_glut_g_c.html#ac5565c321bf5d51d54f500b38d4d6333">setBackgroundColor</a> (<a class="el" href="class_r_glut_color.html">RGlutColor</a> const &amp;color)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_glut_g_c.html#a51390edb80c956735e14c8afb26fe3f0">fillRectangle</a> (int x, int y, int w, int h)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_glut_g_c.html#a276823afa41f010359e5c8d4eeb96183">setFont</a> (<a class="el" href="class_r_glut_font.html">RGlutFont</a> const &amp;font)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_r_glut_font.html">RGlutFont</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_glut_g_c.html#a317cf044e0f82b66121445d0b73c7068">font</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_glut_g_c.html#a77d1419b2df3d8953dcdf7ba67e4e404">textWidth</a> (std::string const &amp;str)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_glut_g_c.html#ac4a5cdee6afa79324cb3328dc3c2ea71">drawString</a> (int x, int y, std::string const &amp;str)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_glut_g_c.html#adeebd6a70e042961d112848a461a7ad6">drawPixmap</a> (Pixmap pmap, int sx, int sy, int width, int height, int dx, int dy)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Basic drawing function implementation. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="adeebd6a70e042961d112848a461a7ad6"></a><!-- doxytag: member="RGlutGC::drawPixmap" ref="adeebd6a70e042961d112848a461a7ad6" args="(Pixmap pmap, int sx, int sy, int width, int height, int dx, int dy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RGlutGC::drawPixmap </td>
          <td>(</td>
          <td class="paramtype">Pixmap&#160;</td>
          <td class="paramname"><em>pmap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Draws the given pixmap. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pmap</td><td>The Pixmap which should be drawn </td></tr>
    <tr><td class="paramname">sx</td><td>source x position(pixmap x position) </td></tr>
    <tr><td class="paramname">sy</td><td>source y position(pixmap y position) </td></tr>
    <tr><td class="paramname">width</td><td>The width that is to draw from Pixmap </td></tr>
    <tr><td class="paramname">height</td><td>The height that is to draw from Pixmap </td></tr>
    <tr><td class="paramname">dx</td><td>destination x position(window x position) </td></tr>
    <tr><td class="paramname">dy</td><td>destination y position(window y position) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac4a5cdee6afa79324cb3328dc3c2ea71"></a><!-- doxytag: member="RGlutGC::drawString" ref="ac4a5cdee6afa79324cb3328dc3c2ea71" args="(int x, int y, std::string const &amp;str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RGlutGC::drawString </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>str</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Draws the given string. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x position </td></tr>
    <tr><td class="paramname">y</td><td>y position </td></tr>
    <tr><td class="paramname">str</td><td>The string which should be drawn </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a51390edb80c956735e14c8afb26fe3f0"></a><!-- doxytag: member="RGlutGC::fillRectangle" ref="a51390edb80c956735e14c8afb26fe3f0" args="(int x, int y, int w, int h)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RGlutGC::fillRectangle </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fill the given area. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x position </td></tr>
    <tr><td class="paramname">y</td><td>y position </td></tr>
    <tr><td class="paramname">width</td><td>width of the rectangle </td></tr>
    <tr><td class="paramname">height</td><td>height of the rectangle </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a317cf044e0f82b66121445d0b73c7068"></a><!-- doxytag: member="RGlutGC::font" ref="a317cf044e0f82b66121445d0b73c7068" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_r_glut_font.html">RGlutFont</a> RGlutGC::font </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Retrieves the font. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_r_glut_font.html" title="Wrapper for X11 font.">RGlutFont</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac5565c321bf5d51d54f500b38d4d6333"></a><!-- doxytag: member="RGlutGC::setBackgroundColor" ref="ac5565c321bf5d51d54f500b38d4d6333" args="(RGlutColor const &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RGlutGC::setBackgroundColor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_r_glut_color.html">RGlutColor</a> const &amp;&#160;</td>
          <td class="paramname"><em>color</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the background color </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_r_glut_color.html" title="Easy to use class to represent color(R, G, B).">RGlutColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a276823afa41f010359e5c8d4eeb96183"></a><!-- doxytag: member="RGlutGC::setFont" ref="a276823afa41f010359e5c8d4eeb96183" args="(RGlutFont const &amp;font)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RGlutGC::setFont </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_r_glut_font.html">RGlutFont</a> const &amp;&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the font. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_r_glut_font.html" title="Wrapper for X11 font.">RGlutFont</a> </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">font</td><td>The font object to set </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a55001c0a05f015a1b05df3defab07181"></a><!-- doxytag: member="RGlutGC::setForegroundColor" ref="a55001c0a05f015a1b05df3defab07181" args="(RGlutColor const &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RGlutGC::setForegroundColor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_r_glut_color.html">RGlutColor</a> const &amp;&#160;</td>
          <td class="paramname"><em>color</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the foreground color </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_r_glut_color.html" title="Easy to use class to represent color(R, G, B).">RGlutColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a77d1419b2df3d8953dcdf7ba67e4e404"></a><!-- doxytag: member="RGlutGC::textWidth" ref="a77d1419b2df3d8953dcdf7ba67e4e404" args="(std::string const &amp;str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int RGlutGC::textWidth </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Retrieves the width that will be used for the given string. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>The string for which the width should be found. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_r_glut_g_c.html">RGlutGC</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Tue Nov 15 2011 10:57:42 for glutes by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
